<?php
require_once(SCRIPTS_PATH . '/phpthumb/ThumbLib.inc.php');

class MyZend_File_Images extends PhpThumbFactory{
	public function creatImage($file_dir, $width, $height, $upload_dir){
		include 'ThumbLib.inc.php';
		$thumb = PhpThumbFactory::create($file_dir);
		$thumb->adaptiveResize($width, $height);
		     
		
		$thumb->save($upload_dir);
	}
}